package com.hhkj.admin.invoice.service.biz;

import com.hhkj.admin.invoice.domain.Invoice;
import com.hhkj.admin.invoice.model.req.InvoiceReq;
import com.hhkj.admin.invoice.model.res.InvoiceRes;
import com.ruoyi.common.base.biz.service.biz.BaseBizService;
import org.apache.poi.ss.usermodel.Workbook;

public interface InvoiceBizService extends BaseBizService<Invoice, InvoiceReq, InvoiceRes>{

    /**
     * 导出excel
     * @param invoiceReq
     * @return
     */
    Workbook createExportWorkbook(InvoiceReq invoiceReq);

    /**
     * 开票（对于管理员来讲是上传发票）
     * @param invoiceReq
     * @return
     */
    boolean invoicing(InvoiceReq invoiceReq);

    /**
     * 作废发票
     * @param id 发票id
     * @return
     */
    boolean discard(Long id);

    /**
     * 重新申请
     * @param id 发票id
     * @return
     */
    boolean reapply(Long id);
}
